import Vue from 'vue'
import VueRouter from 'vue-router'
import Todo from '@/components/todo-vuex.vue'
import TodoList from '@/components/TodoList.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/todo',
    component: TodoList
  },
  {
    path: '/',
    component: Todo
  }
]

const router = new VueRouter({
  routes
})

export default router
